home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-19 | 3.5 KB | 161 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Sadistikal:KSS:ImagePart:_SOM_:som_ImagePart.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_KSS_defined
- #define SOM_Module_KSS_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODPersistentObject;
- class ODStorageUnit;
- class ODPart;
- class ODCanvas;
- class ODDragItemIterator;
- class ODEmbeddedFramesIterator;
- class ODLink;
- class ODLinkSource;
- class ODObjectSpec;
- class ODShape;
- class ODStorageUnitView;
- class ODTypeList;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_KSS_defined */
-
- #ifndef SOM_KSS_som_ImagePart_xh
- #define SOM_KSS_som_ImagePart_xh
-
- class KSS_som_ImagePart;
-
- #define KSS_som_ImagePart_MajorVersion 1
- #define KSS_som_ImagePart_MinorVersion 2
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODPart_xh
- #include <Part.xh>
- #endif
-
- #ifndef KSS_som_ImagePart_API
- #define KSS_som_ImagePart_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define KSS_som_ImagePartCClassData KSS_som_ImagePartClassData
- #define KSS_som_ImagePartNewClass(major,minor) somNewVersionedClassReference(KSS_som_ImagePart,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define KSS_som_ImagePartMetaClass SOMClass
-
-
- /* The API to the KSS_som_ImagePart class object, and the methods it introduces. */
- SOMEXTERN struct KSS_som_ImagePartClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- } SOMDLINK KSS_som_ImagePartClassData;
-
- #if !defined(KSS_som_ImagePart_Class_Source) && !defined(SOM_Module_som_imagepart_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list KSS_som_ImagePartClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for KSS_som_ImagePart Method Procedures
- */
- SOMEXTERN {
- }
-
- #endif /* KSS_som_ImagePart_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for KSS_som_ImagePart
- */
- class KSS_som_ImagePart : public ODPart
- {
- public:
-
- // KSS_som_ImagePart::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for KSS_som_ImagePart, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(KSS_som_ImagePart);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(KSS_som_ImagePart);
- #endif
- }
-
- // KSS_som_ImagePart::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- }; /* KSS_som_ImagePart */
-
-
-
- #endif /* SOM_KSS_som_ImagePart_xh */
-